package com.rx.core.enm;

import com.rx.core.base.RxResultCode;

/**
 * 所有版权归 广西梧州 陈锦韬 所有
 *
 * @version V1.0
 * @Title: CERT_ERROR
 * @Package com.rx.enm
 * @Description: 错误码
 * @author: 陈锦韬
 * @date: 2020\5\23 0023
 * @Copyright: 2020 陈锦韬  All rights reserved.
 */
public enum CERT_ERROR implements RxResultCode {
    LOG_OUT("100100","尚未登录"),
    /* 用户错误 */
    USER_NOT_LOGIN("100100", "用户未登录"),
    USER_ACCOUNT_EXPIRED("100101", "账号已过期"),
    USER_CREDENTIALS_ERROR("100102", "密码错误"),
    USER_CREDENTIALS_EXPIRED("100103", "密码过期"),
    USER_ACCOUNT_DISABLE("100104", "账号不可用"),
    USER_ACCOUNT_LOCKED("100105", "账号被锁定"),
    USER_ACCOUNT_NOT_EXIST("100106", "账号不存在"),
    USER_ACCOUNT_ALREADY_EXIST("100107", "账号已存在"),
    USER_ACCOUNT_USE_BY_OTHERS("100108", "账号下线");

    private String code;
    private String desc;
    private CERT_ERROR(String code,String desc){
        this.code = code;
        this.desc = desc;
    }
    @Override
    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    @Override
    public String getDesc() {
        return desc;
    }
    public void setDesc(String desc) {
        this.desc = desc;
    }
}
